package com.enjoy.concurrent.ch5;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;


public class ConcurrentHashMapTest {
    public static void main(String[] args) {
        Map<Object, Object> map = new ConcurrentHashMap<>();
        map.put(new A(), "aa");
        map.put(new A(), "bb");
        map.put(new A(), "cc");
        map.put(new A(), "dd");
        map.put(new A(), "ee");
        map.put(new A(), "ff");
        map.put(new A(), "gg");
        map.put(new A(), "hh");
        map.put(new A(), "ii");
        map.put(new A(), "jj");
        map.put(new A(), "kk");
        map.put(new A(), "ll");
        map.put(new A(), "mm");
        map.put(new A(), "nn");
        map.put(new A(), "oo");

    }

    static class A {
        @Override
        public int hashCode() {
            return 1;
        }
    }
}
